import { Component, OnInit } from '@angular/core';

@Component({
  selector: 'app-home',
  templateUrl: './home.component.html',
  styleUrls: ['./home.component.css']
})
export class HomeComponent implements OnInit {

  public title:string='首页组件的标题';
  public msg:string='父组件的msg'
  constructor() { }

  ngOnInit(): void {
  }
  run(){
    alert('父组件中的方法')
  }
}
